package org.hughie.springframework.aop;

/**
 * 定义类匹配类，用于切点找到给定的接口和目标类。
 *
 * @author hughie.cheng
 * @since 2023/6/1
 */
public interface ClassFilter {
    /**
     * Should the pointcut apply to the given interface or target class?
     *
     * @param clazz the candidate target class
     * @return whether the advice should apply to the given target class
     */
    boolean matches(Class<?> clazz);
}
